import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';

//Redux
import { Provider } from 'react-redux';
import store from './store';
/* REM */
import 'lib-flexible'

//less
import './index.less'


// 处理最大宽度
(function () {
  const handleMax = function handleMax () {
    let html = document.documentElement,
        root = document.querySelector("#root"),
        deviceW = html.clientWidth;
    root.style.maxWidth = "750px";
    if(deviceW >= 750) {
      html.style.fontSize = "75px";
    }
  }
  handleMax();
})()

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
      <App />
  </Provider>
);